ALMaSS  1.0
The Animal, Landscape and Man Simulation System
AlleleFreq1616 Class Reference

#include <GeneticMaterial.h>

Public Member Functions

 AlleleFreq1616 ()
 
int SupplyAN (int loc, int al)
 

Protected Attributes

int AlleleNumber [16][16]
 
float AlleleFrequency [16][16]
 
float HE [16]
 
float HO [16]
 
int NoAlleles [16]
 

Constructor & Destructor Documentation

◆ AlleleFreq1616()

AlleleFreq1616::AlleleFreq1616 ( )
558  {
559  FILE * FreqFile = fopen("GeneticFrequencies_1616_Mut.txt", "r" );
560  int data;
561  if ( !FreqFile ) {
562  g_msg->Warn( "GeneticFrequencies_1616_Mut.txt File missing - AllelFreq1616", "" );
563  exit( 0 );
564  }
565  for ( int i = 0; i < 16; i++ ) {
566  for ( int j = 0; j < 16; j++ ) {
567  fscanf( FreqFile, "%d", & data );
568  AlleleNumber[ i ] [ j ] = data;
569  }
570  }
571 
572  fclose( FreqFile );
573 }
int AlleleNumber[16][16]
Definition: GeneticMaterial.h:128
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: maperrormsg.cpp:59
class MapErrorMsg * g_msg
This pointer provides access the to the internal ALMaSS error message system.
Definition: maperrormsg.cpp:41

References AlleleNumber, g_msg, and MapErrorMsg::Warn().

Member Function Documentation

◆ SupplyAN()

int AlleleFreq1616::SupplyAN ( int  loc,
int  al 
)
inline
135 { return AlleleNumber[loc][al];}

References AlleleNumber.

Referenced by GeneticMaterial1616::Initiation().

Member Data Documentation

◆ AlleleFrequency

float AlleleFreq1616::AlleleFrequency[16][16]
protected

◆ AlleleNumber

int AlleleFreq1616::AlleleNumber[16][16]
protected

Referenced by AlleleFreq1616(), and SupplyAN().

◆ HE

float AlleleFreq1616::HE[16]
protected

◆ HO

float AlleleFreq1616::HO[16]
protected

◆ NoAlleles

int AlleleFreq1616::NoAlleles[16]
protected

The documentation for this class was generated from the following files: